package com.bee.auth.common.vo;


import com.bee.user.client.dto.ResourceDTO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * 菜单资源
 * @author Damin.yang
 * @date 2019/8/27 9:20
 */
@Data
public class ApiVO {

    private String name;

    private String code;

    private Long parentId;

    private String serviceId;

    private String url;

    public static ApiVO covert(ResourceDTO dto) {
        ApiVO vo = new ApiVO();
        BeanUtils.copyProperties(dto, vo);
        return vo;
    }

}
